package com.qf.pojo;

import java.util.*;

public class User {
public void init(){
    System.out.println("对象创建了");

}
public void destroy(){
    System.out.println("对象销毁了");

}

    public User() {

    }

    public User(int id, String username, int age) {
        this.id = id;
        this.username = username;
        this.age = age;
    }

    public User(int id, String username, String gender) {
        this.id = id;
        this.username = username;
        this.gender = gender;
    }


    private int id;
    private String username;
    private String gender;
    private int age;
    private Date birthday;
    private IdCard idCard;
    private String[] arr;
    private List<String> list;
    private Set<String> set;
    private Map<String,String>map;
    private Properties prop;

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public void setProp(Properties prop) {
        this.prop = prop;
    }

    public void setArr(String[] arr) {
        this.arr = arr;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public void setIdCard(IdCard idCard) {
        this.idCard = idCard;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public void setAge(int age) {
        this.age = age;
    }

//    @Override
//    public String toString() {
//        return "User{" +
//                "id=" + id +
//                ", username='" + username + '\'' +
//                ", gender='" + gender + '\'' +
//                ", age=" + age +
//                ", birthday=" + birthday +
//                ", idCard=" + idCard +
//                '}';
//}
//    @Override
//    public String toString() {
//        return "User{" +
//
//                ", arr=" + Arrays.toString(arr) +
//                ", list=" + list +
//                ", set=" + set +
//                '}';
//    }

//    @Override
//    public String toString() {
//        return "User{" +
//
//                ", arr=" + Arrays.toString(arr) +
//                ", list=" + list +
//                ", set=" + set +
//                ", map=" + map +
//                ", prop=" + prop +
//                '}';
//    }
}

